<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .menu {
          display: flex;
          flex-direction: column;
          border: 1px solid #333;
          border-radius: 4px;
          padding: 0px 10px;
        }
        .menu-item {
          display: flex;
          align-items: center;
          margin: 2px 0;
        }
        .menu-hotkey {
          margin-left: auto;
          padding: 3px 4px;
          border-radius: 5px;
          background-color: pink;
        }
        .img-up {
          margin-right: 5px;
        }
      </style>
</head>
<body>
    <div class="menu">
        <div class="menu-item">
          <!-- 第一种菜单 -->
          <div>第二种菜单</div>
          <span class="menu-hotkey">热</span>
        </div>
        <div class="menu-item">
          <!-- 第二种菜单 -->
          <img src="images/up.png" alt="" class="img-up" />
          <div class="title">第二种菜单</div>
          <span class="menu-hotkey">热</span>
        </div>
      </div>
</body>
</html>